<div class="" id="myModal" >
  <div class="modal-header">
    <h3 style="text-transform: capitalize;"><?php echo $action ?> Product</h3>
  </div>
<?php echo form_open('administrator/shop/product/save') ?>

    <label for="product_name"><strong>Product Name</strong></label><input class="input-xxlarge" type="text" value="" name="product_name" id="product_name" />
    <label for="product_desc"><strong>Description</strong></label><textarea name="product_desc" id="post_desc" class="ckeditor" class="large"></textarea>
    <label><strong>Price</strong></label>
    <table class="table table-striped table-bordered table-condensed">
    <tr>
        <td><label for="price_export">Price export</label><input type="text" value="" name="price_export" id="price_export" /></td>
        <td><label for="price_discount">Discount</label><input type="text" value="" name="price_discount" id="price_discount" /></td>
        <td><label for="price_import">Thông tin bảo hành</label><textarea name="price_import" id="price_import" ></textarea></td>
    </tr>
    </table>
    <label class="checkbox">
                <input type="checkbox" name="is_feature" value="1"/> Is Feature
            </label>
    <label for="cat_id"><strong>Category and Access</strong></label>
    <table class="table table-striped table-bordered table-condensed">
    <tr>
        <td><label for="cat_id">Category</label>
            <select name="cat_id">
                <?php 
                if(count($categories)>0):?>
                    <?php foreach($categories as $cat):
                        $cat_name = $this->_global->_unserialize($cat->cat_name)
                    ?>
                        <option  value="<?php echo $cat->cat_id;?>">
                        <?php if(!empty($cat_name[$this->session->userdata('lan')])): echo $cat_name[$this->session->userdata('lan')]['title'];
                            else: echo 'Không tồn tại tiêu đề danh mục cho ngôn ngữ hiện tại';
                            endif;
                        ?>
                        </option>
                    <?php endforeach?>
                <?php endif?>
            </select></td>
            
        <td><label for="access">Access:</label>
            <select name="access">
                <option value="0">All</option>
                <?php if(count($roles)>0):?>
                    <?php foreach($roles as $rol):?>
                        <option value="<?php echo $rol->rolesID;?>"><?php echo $rol->name;?></option>
                    <?php endforeach?>
                <?php endif?>
            </select></td>
        <td><label for="brand_tag">Brand</label><input type="text" value="" name="brand_tag" id="brand_tag" /></td>
    </tr>
    </table>
    
    <label><strong>Meta Data</strong></label>
    <table class="table table-striped table-bordered table-condensed">
    <tr>
        
        <td><label for="metakey">Metakey</label><input class="input-xlarge" style="width: 400px;" type="text" value="" name="metakey" id="metakey" /></td>
        <td><label for="metadesc">Metadesc</label><input  class="input-xlarge" style="width: 400px;" type="text" value="" name="metadesc" id="metadesc" /></td>
        
    </tr>
    </table>
    <div class="modal-footer">
    <input type="submit" class="btn btn-primary"  value="Next Step"/>
    <a href="<?php echo base_url().'/administrator/shop/product/'?>" class="btn">Cancel</a>
    <input type="hidden" name="action"  value="<?php echo $action ?>" id="action" />
    <input type="hidden" name="product_id"  value="<?php echo $product_id?>" id="product_id" />
    </div> 
    
    
</form></div>